function devNameFilter(devName, filterDevValue) {
  return devName.toLowerCase().indexOf(filterDevValue.toLowerCase()) > -1
}

function devMacFilter(devices, devMac) {
  return devices.filter(function (item) {
    var arr = item.deviceld.split(":");
    let strs = ''
    arr.forEach(str => {
      strs += str
    })
    return strs.toLowerCase().indexOf(devMac.toLowerCase()) > -1
  })
}
module.exports = devNameFilter